package com.foreknow.demo5;

/**
 * @author shkstart
 * @create 2021-07-27 10:57
 */
public class SingletonTest {
    //静态常量
    public static final String NAME="tom";
    public static void main(String[] args) {
       Singleton singleton=Singleton.getInstance();
       singleton.setName("tom");
        System.out.println(singleton.getName());

        System.out.println(SingletonTest.NAME);
    }



}
